//单纯数组去重
function ArrayUnique(arr) {
    var temp = [];
    for (var i = 0; i < arr.length; i++) {
        if (temp.indexOf(arr[i]) == -1) {
            temp.push(arr[i]);
        }
    }
    return temp;
}

console.log(ArrayUnique([1,2,2,3,3,4])) //[ 1, 2, 3, 4 ]